Repository navigation
Fix issue #7: add clubs points display board - #6
Merged
Merged
Conversation
Reviewer's GuideImplements a clubs points display board by passing the full clubs list to the summary template, rendering each club and its points on the welcome page, and adding a test to verify that the list and balances appear after login, along with some minor formatting adjustments in tests and template. Sequence diagram for displaying clubs points after secretary loginsequenceDiagram
actor Secretary
participant Browser
participant FlaskServer
participant TemplateEngine
Secretary->>Browser: Submit login form (email)
Browser->>FlaskServer: POST /showSummary with email
FlaskServer->>FlaskServer: Lookup club by email
FlaskServer->>FlaskServer: Load competitions list
FlaskServer->>FlaskServer: Load clubs list
FlaskServer->>TemplateEngine: Render welcome_html with club, competitions, clubs
TemplateEngine-->>FlaskServer: HTML with competitions and clubs points board
FlaskServer-->>Browser: 200 OK (welcome page)
Browser-->>Secretary: Display competitions and clubs points board
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
test_display_list_of_club_and_their_current_point, thebooking_test_datafixture’scompetition_testvalue is never used and the test hardcodesadmin@irontemple.cominstead of usingclub_test['email'], which makes the test more brittle than necessary; consider deriving the email fromclub_testand dropping the unused fixture component. - The new test name
test_display_list_of_club_and_their_current_pointis slightly awkward and inconsistent with the other tests’ naming style; consider renaming it to something liketest_show_summary_displays_club_pointsto better reflect behavior and align with existing test naming conventions.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `test_display_list_of_club_and_their_current_point`, the `booking_test_data` fixture’s `competition_test` value is never used and the test hardcodes `admin@irontemple.com` instead of using `club_test['email']`, which makes the test more brittle than necessary; consider deriving the email from `club_test` and dropping the unused fixture component.
- The new test name `test_display_list_of_club_and_their_current_point` is slightly awkward and inconsistent with the other tests’ naming style; consider renaming it to something like `test_show_summary_displays_club_points` to better reflect behavior and align with existing test naming conventions.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request implements the clubs points display board.
When a secretary logs into the application, they can now see the list of all clubs and their current points balance on the summary page.
Changes made
/showSummaryroute to pass the full clubs list towelcome.html.welcome.htmlto display each club with its current points balance.Closes #7
Summary by Sourcery
Display clubs and their current points on the summary page after login.
New Features:
Tests: